package com.example.demo.controller;


import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class Test {
    @RequestMapping("/hello")
    public Result hello(){
        Result result = new Result();
        result.unauthorized("权限不足");

        return result;
    }
}